package com.sz.mes.entity;

import java.util.Date;
import java.lang.Double;
import java.math.BigDecimal;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.hibernate.validator.constraints.Length;
import java.util.List;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.sz.mes.entity.BaseCustomEntity;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.diboot.core.util.D;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 产出 Entity定义
 * @author hem
 * @version 1.0
 * @date 2024-01-15
 * Copyright © szhs
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("output")
public class Output extends BaseCustomEntity {

    private static final long serialVersionUID = 3040163775536545708L;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    private Long createBy;

    /**
     * 报工人
     */
    @Length(max = 100, message = "报工人长度应小于100")
    @TableField()
    private String userName;

    /**
     * 工艺信息查询
     */
    @TableField()
    private Long techId;

    /**
     * 合格品数据
     */
    @TableField()
    private Integer goodQuantity;

    /**
     * 不良品数据
     */
    @TableField()
    private Integer badQuantity;
}
